# -*- coding: utf-8 -*-

from django import forms
from codeshare.main.models import *

class CodeSubmitForm(forms.Form):
    language = forms.ModelChoiceField(queryset=CodeLanguage.objects.all(), required=True)
    title = forms.CharField(max_length=200, help_text="A brief title for this code.")
    description = forms.CharField(max_length=600, 
        help_text="Tell others what this does in 600 characters or less (optional).", 
        widget=forms.Textarea(attrs={'class':'nogrow'}), required=False)
    
    code = forms.CharField(widget=forms.Textarea)
    